<template>
    <div class="box">BOX A
      {{dataA}}
   <main>
      <slot name="third" :comAdata="arrdata"></slot>
  <!-- <slot>我是comA组件的内容</slot> -->
</main>
    </div>
  </template>

  <script>
   export default{
    data(){
      return{
        arrdata:{
          name:"李彤康",
          age:"18",
        }
      }
    },
    props:{
      dataA:{
        type:String,
      }
    }
   }
</script>
  <style scoped>
  .box {
    height: 100px;
    width: 100px;
    background: #2a5caa;
    color: #fff;
  }
  </style>
